package com.csw.tableJqgrid.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.csw.tableJqgrid.dao.UserDao;
import com.csw.tableJqgrid.entity.User;

/**
 * @author 1
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class UserServiceImpl implements UserService {
	@Autowired
	private UserDao userDao;

	@Override
	public User queryUsername(String username) {
		return userDao.queryUsername(username);
	}

	@Override
	public void regist(User user) {
		userDao.regist(user);
	}

	/* @Transactional(rollbackFor = Exception.class) */
}
